package com.example.design_pattern.decorator;

public class Client {

    public static void main(String[] args){
        test1();
    }

    private static void test1(){
        Order saleOrder = new SaleOrder();
        Order headDecorator = new HeaderDecorator(saleOrder);
        headDecorator.print();
        System.out.println("\n\n\n");
        Order footDecorator = new FooterDecorator(saleOrder);
        footDecorator.print();
    }

}
